package com.springboot.thymeleaf.springbootthymeleaf;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.context.annotation.ComponentScan;
//
//import java.sql.Connection;
//import java.sql.DriverManager;
//import java.sql.SQLException;

@SpringBootApplication
@MapperScan("com.springboot.thymeleaf.springbootthymeleaf.mapper")
//@ComponentScan(basePackages = {"com.springboot.thymeleaf"})
@EnableScheduling
public class SpringbootThymeleafApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootThymeleafApplication.class, args);
    }


//        public static void main(String[] args) {
//            //加载驱动类
//            try {
//                //Class.forName("com.mysql.jdbc.Driver");
//                Class.forName("com.mysql.cj.jdbc.Driver");
//                Connection conn= DriverManager.getConnection("jdbc:mysql://192.168.145.136:3306/lianxi?useSSL=false&serverTimezone=Hongkong",
//                        "root","123456");
//            } catch (ClassNotFoundException e) {
//                // TODO Auto-generated catch block
//                e.printStackTrace();
//            } catch (SQLException e) {
//                // TODO Auto-generated catch block
//                e.printStackTrace();
//            }
//        }


}
